Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | var gulp = require('gulp'); |
||
23 | gulp.task('test:script', function () { |
||
24 | return rollup({ |
||
25 | entry: 'test/**/*.ts', |
||
26 | external: Object.keys(globals), |
||
27 | cache: rollupBundle, |
||
28 | plugins: [ |
||
29 | multiEntry({exports: false}), |
||
30 | // tslint({ throwError: true, include: 'src/**' }), |
||
31 | typescript() |
||
32 | ], |
||
33 | onwarn: function (msg) { |
||
34 | throw Error(msg); |
||
35 | } |
||
36 | }).then(function (bundle) { |
||
37 | return bundle.write({ |
||
38 | globals, |
||
39 | format: 'iife', |
||
40 | dest: 'test/tmp/test.js', |
||
41 | sourceMap: 'inline' |
||
42 | }); |
||
43 | }).catch(function (err) { |
||
44 | throw new PluginError('rollup', err.toString()); |
||
45 | }); |
||
46 | }); |
||
47 | |||
55 | }); |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.